XPAT Generator